A strongly-typed sequence of 3 variously typed values.
- T1
- The first value type.
- T2
- The second value type.
- T3
- The third value type.
A Tuple is an immutable, strongly typed sequence of variously typed values with each value lacking an otherwise meaningful name aside from its position.
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
See Also: Inherited members from object.
⊟ Public Constructors
Tuple (T1, T2, T3)Constructs and initializes a new Cadenza.Tuple<T1, T2, T3> instance. ⊟ Public Properties
⊟ Public Methods
⊟ Extension Methods
staticAggregate<T1,T2,T3,TResult> (this Tuple<T1, T2, T3>, Func<T1, T2, T3, TResult>) : TResult Converts the Cadenza.Tuple<T1, T2, T3> into a TResult. staticJust<T> (this T) : Maybe<T> Create a new Cadenza.Maybe<T> instance initialized to a specified value. The returned value will not be Maybe<T>.Nothing. staticMatch<TSource,TResult> (this TSource, params Func<TSource, Maybe<TResult>>[]) : TResult Converts the TSource instance self into a TResult. staticMatch<T1,T2,T3,TResult> (this Tuple<T1, T2, T3>, params Func<T1, T2, T3, Maybe<TResult>>[]) : TResult Converts the current Cadenza.Tuple<T1, T2> instance into a TResult. staticToEnumerable<T1,T2,T3> (this Tuple<T1, T2, T3>) : IEnumerable<object> Converts the Cadenza.Tuple<T1, T2, T3> into a IEnumerable<object>. staticToMaybe<T> (this T) : Maybe<T> Create a new Cadenza.Maybe<T> instance initialized to a specified value. The returned value may be Maybe<T>.Nothing. staticTraverseBreadthFirst<TSource,TResult> (this TSource, Func<TSource, TResult>, Func<TSource, IEnumerable<TSource>>) : IEnumerable<TResult> Traverse a tree in a breadth-first fashion, converting each encountered node. staticTraverseBreadthFirstWithParent<TSource,TResult> (this TSource, Func<TSource, TResult>, Func<TSource, IEnumerable<TSource>>) : IEnumerable<KeyValuePair<TSource, TResult>> Traverse a tree in a breadth-first fashion, converting each encountered node. staticTraverseDepthFirst<TSource,TResult> (this TSource, Func<TSource, TResult>, Func<TSource, IEnumerable<TSource>>) : IEnumerable<TResult> Traverse a tree in a depth-first fashion, converting each encountered node. staticTraverseDepthFirstWithParent<TSource,TResult> (this TSource, Func<TSource, TResult>, Func<TSource, IEnumerable<TSource>>) : IEnumerable<KeyValuePair<TSource, TResult>> Traverse a tree in a depth-first fashion, converting each encountered node. staticWith<TSource,TResult> (this TSource, Func<TSource, TResult>) : TResult Supports chaining otherwise temporary values.
⊟ Tuple Constructor
Constructs and initializes a new Cadenza.Tuple<T1, T2, T3> instance.
public Tuple (T1 item1, T2 item2, T3 item3)⊟ Parameters
- item1
- A T1 which is used to initialize the Tuple<T1, T2, T3>.Item1 property.
- item2
- A T2 which is used to initialize the Tuple<T1, T2, T3>.Item2 property.
- item3
- A T3 which is used to initialize the Tuple<T1, T2, T3>.Item3 property.
⊟ Remarks
Constructs and initializes a new Cadenza.Tuple<T1, T2, T3> instance.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Equals Method
Determines whether the current instance and the specified object have the same value.
⊟ Parameters
- obj
- A object to compare this instance against.
⊟ Returns
true if obj is a Cadenza.Tuple<T1, T2, T3> and each member of obj and the current instance have the same value (according to EqualityComparer<T>.Equals(`0, `0)); otherwise false is returned.⊟ Remarks
This method checks for value equality (EqualityComparer<T>.Equals(`0, `0)), as defined by each value type.
Note: This method overrides object.Equals(object).⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ GetHashCode Method
Generates a hash code for the current instance.
public override int GetHashCode ()⊟ Returns
A int containing the hash code for this instance.⊟ Remarks
Note: This method overrides object.GetHashCode.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Item1 Property
The first tuple value.
public T1 Item1 { get; }⊟ Value
A T1 which is the first tuple value.⊟ Remarks
The first tuple value.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Item2 Property
The second tuple value.
public T2 Item2 { get; }⊟ Value
A T2 which is the second tuple value.⊟ Remarks
The second tuple value.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ Item3 Property
The third tuple value.
public T3 Item3 { get; }⊟ Value
A T3 which is the third tuple value.⊟ Remarks
The third tuple value.⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0
⊟ ToString Method
Returns a string representation of the value of the current instance.
public override string ToString ()⊟ Returns
A string representation of the value of the current instance.⊟ Remarks
Operation
Returns (, followed by a comma-separated list of the result of calling object.ToString on Tuple<T1, T2, T3>.Item1, Tuple<T1, T2, T3>.Item2, Tuple<T1, T2, T3>.Item3, followed by ).⊟ Requirements
Namespace: Cadenza
Assembly: Cadenza (in Cadenza.dll)
Assembly Versions: 0.1.0.0